﻿using RDWSMTool.Views;
using Prism.Ioc;
using Prism.Modularity;
using System.Windows;
using RDWSMTool.Views.Dialogs;
using RDWSMTool.ViewModels.Dialogs;

namespace RDWSMTool
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App
    {
        protected override Window CreateShell()
        {
            return Container.Resolve<MainWindow>();
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterDialog<AddDileveryOrderDialog, AddDileveryOrderDialogViewModel>();
            containerRegistry.RegisterDialog<AddGoodsDialog, AddGoodsDialogViewModel>();
            containerRegistry.RegisterDialog<AddOutputRecordDialog, AddOutputRecordDialogViewModel>();
        }
    }
}
